#ifndef __SRC_CHU_SWITCH_H
#define __SRC_CHU_SWITCH_H
#include <stdint.h>


#define SET_BIT(val, bit)     ((val) |= (1U << (bit)))      // 设置为 1
#define CLEAR_BIT(val, bit)   ((val) &= ~(1U << (bit)))     // 设置为 0
#define TOGGLE_BIT(val, bit)  ((val) ^= (1U << (bit)))      // 翻转
#define CHECK_BIT(val, bit)   (((val) >> (bit)) & 1)        // 检查是否为 1


typedef struct {
uint8_t shutter_select; //0x00
uint8_t master_gain_select;//0x01
uint8_t switch_addr80;
uint8_t switch_addr81;
uint8_t switch_addr82;
uint8_t switch_addr83;
uint8_t switch_addr86;

}chu_switch_t;
#endif